package com.itheima.service;

import com.itheima.pojo.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UmsMemberLevelService {

    @DubboReference
    private UmsMemberLevelApi umsMemberLevelApi;

    /**
     * 查询所有会员等级
     */
    public List<UmsMemberLevel> list(Integer defaultStatus) {
        return umsMemberLevelApi.list(defaultStatus);
    }
}
